
local Tube = require'entities.tube'

Wire = {}
Wire.mt = { __index = Wire }
setmetatable(Wire, Tube.mt)

function Wire.initialize(kind, x, y, transform, layer)


	local WIRE_t = Tube.new('wires', nil, x, y, transform, layer)
	setmetatable(WIRE_t, Wire.mt)

	WIRE_t.tile_grid:setTile(1, 1, kind)
	WIRE_t.health = WIRE_t.health * WIRE_HEALTH_MOD
	WIRE_t.dmg_rate =  WIRE_t.dmg_rate/WIRE_HEALTH_MOD

	return WIRE_t

end


function Wire.new(kind, x, y, transform, layer)

	local o = Wire.initialize(kind, x, y, transform, layer)

	return o

end



return Wire